<?php 
// 打印数据
function p($data)
{
	echo "<pre>";
	var_dump($data);
	"</pre>";

}

// 设置配置项
function C($name='',$value='')
{	
	//设置一个静态数组
	static $conf=[];
	//
	if (empty($name)) {
		return $conf;
	}else if (is_array($name)) {
		//合并数组存到内存中
		$conf = array_merge($conf,$name);
	}else if (is_string($name)) {
		if (is_null($value)) {
			if (isset($conf[$name])) {
				unset($conf[$name]);
			}
			return true;
		}else if ($value=='') {
			return isset($conf[$name])?$conf[$name]:null;
		}else{
			return $conf[$name] = $value;
		}
	}


	



}






 ?>